<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

require_once 'Classes/Element.php';

class Structure extends Element
{
    private $name;
    private $address;
   // private $structureID;
    
    
    public function __construct($arrayOrName="", $address="") {
            parent::__construct($arrayOrName);
            if(is_array($arrayOrName)){
                $this->name = $arrayOrName['Name'];
                $this->address = $arrayOrName['Address'];
            }
            else {
                $this->name = $arrayOrName;
                $this->address = $address;
            }
            
    }
    
    
    public function getName(){
        return $this->name;   
    }
    
    public function setName($name){
        $this->name= $name;
    }
    
    
    public function getAddress(){
        return $this->address;   
    }
    
    public function setAddress($address){
        $this->address= $address;
       
    }
       
    
 /*   public function getStructureID(){
        return $this->structureID;   
    }
    
    public function setStructureID($structureID){
        $this->structureID= $structureID;
        
    }*/
}


?>
